<?php

use Drupal\shusy_couponfree\Entity\ShusyCouponfree;
use Drupal\shusy_couponfree\Entity\ShusyCouponfreeLog;

function shusy_couponfree_shusy_couponfree_add_page() {
  $e = new ShusyCouponfree();
  module_load_include('inc', 'shusy_couponfree', 'shusy_couponfree.forms');
  return drupal_get_form('shusy_couponfree_shusy_couponfree_entity_form', $e, 'add');
}

function shusy_couponfree_shusy_couponfree_view_page(ShusyCouponfree $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_couponfree_shusy_couponfree_edit_page(ShusyCouponfree $e) {
  module_load_include('inc', 'shusy_couponfree', 'shusy_couponfree.forms');
  return drupal_get_form('shusy_couponfree_shusy_couponfree_entity_form', $e, 'edit');
}

function shusy_couponfree_shusy_couponfree_delete_page(ShusyCouponfree $e) {
  module_load_include('inc', 'shusy_couponfree', 'shusy_couponfree.forms');
  return drupal_get_form('shusy_couponfree_shusy_couponfree_delete_form', $e);
}

function shusy_couponfree_shusy_couponfree_log_add_page() {
  $e = new ShusyCouponfreeLog();
  module_load_include('inc', 'shusy_couponfree', 'shusy_couponfree.forms');
  return drupal_get_form('shusy_couponfree_shusy_couponfree_log_entity_form', $e, 'add');
}

function shusy_couponfree_shusy_couponfree_log_view_page(ShusyCouponfreeLog $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_couponfree_shusy_couponfree_log_edit_page(ShusyCouponfreeLog $e) {
  module_load_include('inc', 'shusy_couponfree', 'shusy_couponfree.forms');
  return drupal_get_form('shusy_couponfree_shusy_couponfree_log_entity_form', $e, 'edit');
}

function shusy_couponfree_shusy_couponfree_log_delete_page(ShusyCouponfreeLog $e) {
  module_load_include('inc', 'shusy_couponfree', 'shusy_couponfree.forms');
  return drupal_get_form('shusy_couponfree_shusy_couponfree_log_delete_form', $e);
}

